<?php
/**
 * Larfree Api类
 * @author xiao
 */
namespace App\Http\Controllers\Api\Express;
use Illuminate\Http\Request;
use Larfree\Controllers\ApisController as Controller;
use App\Models\Express\ExpressAttend;
class AttendController extends Controller
{
    public function __construct(ExpressAttend $model)
    {
        $this->model = $model;
        parent::__construct();
    }

    public  function index(Request $request)
    {
        $userID=getLoginUserID();
        $this->model=$this->model->where('user_id',$userID)->orderBy('id','desc')->link();
        return parent::index($request);

    }
}